<div id="top-panel">
    <div id="panel">
        <ul>
            <li><a href="<?php echo site_url("group/create"); ?>" class="report">Create</a></li>            	
        </ul>
    </div>
</div>
<div id="wrapper">
	<div id="content">
		<div id="rightnow">
			<h3 class="reallynow">Group list</h3>
			<?php if (count($group)): ?>
			<table width="100%">
				<thead>
					<tr>
						<th>Group name</th>	
						<th>Task</th>					
					</tr>
				</thead>
				<tbody>
					<?php foreach($group as $v): ?>
					<tr>
						<td><div style="padding-left:10px;"><a class="tool" href="<?php echo site_url("group/".$v['id']); ?>"><?php echo $v['name']; ?></a></div></td>
						<td><div align="center"><a class="tool" href="<?php echo site_url("group/delete/".$v['id']); ?>">Delete</a></div></td>
					</tr>
					<?php endforeach; ?>
				</tbody>
			</table>
			<?php else: ?>
				<p>No data to display</p>
			<?php endif; ?>
		</div>
	</div>
</div>